<template>
	<view>
		<navigationBar navigationTitle="首页" />
		<view class="btn" @click="onNext()">技师</view>
	</view>
</template>

<script>
	import location from "@/utils/location.js";
	export default {
		data() {
			return {};
		},
		onLoad() {
			// location.getLocation((info) => {
			// 	console.log("AAAAAA", info);
			// 	uni.request({
			// 		url: "https://bh.ascetic.top/api/index/getWeather",
			// 		method:"GET",
			// 		data: {
			// 			lat: info.lat,
			// 			lng: info.lng
			// 		},
			// 		success: res => {
			// 		}
			// 	})
			// })
		},
		methods: {
			onNext() {
				if (this.$filters.isLogin()) {
					uni.navigateTo({
						url: "/subPages/technician/tabBar/home",
					});
				}
			},
		},
	};
</script>

<style lang="scss" scoped>
	.btn {
		margin: 200rpx auto;
		width: 400rpx;
		height: 80rpx;
		background-color: $theme-color;
		line-height: 80rpx;
		text-align: center;
		color: $bg-text-color;
		font-size: 30rpx;
	}
</style>
